/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Operaciones;

/**
 *
 * @author Jonathan
 */
public class OperacionesCalcu {
    
    private double a=0;
    private double            b=0;
    private double            s=0;
    private double            r=0;
    private double            m=0;
    private double            d=0;

    /**
     * @return the a
     */
    public double getA() {
        return a;
    }

    /**
     * @param a the a to set
     */
    public void setA(double a) {
        this.a = a;
    }

    /**
     * @return the b
     */
    public double getB() {
        return b;
    }

    /**
     * @param b the b to set
     */
    public void setB(double b) {
        
        this.b = b;
    }

    /**
     * @return the s
     */
    public double getS() {
        s=a+b;
        return s;
    }


    /**
     * @return the r
     */
    public double getR() {
        r=a-b;
        return r;
    }


    /**
     * @return the m
     */
    public double getM() {
        m=a*b;
        return m;
    }

    /**
     * @return the d
     */
    public double getD() {
        if (b==0){
            d=0;
        }
        else{
         d=a/b;   
        }
        
        return d;
    }
    

 
    
}
